/*================================================================
*   Copyright (C) 2018 LiuYao. All rights reserved.
*   
*   Filename : GradientDescentOptimizer.h
*   Author : LiuYao
*   Date : 2018-01-03
*   Description : 
*
================================================================*/
#ifndef _GRADIENTDESCENTOPTIMIZER_H
#define _GRADIENTDESCENTOPTIMIZER_H

#include "../node.h"
#include "optimizer.h"
#include "../../session/context.h"

class GradientDescentOptimizer : public Optimizer {
    private:
        double alpha_;
    public:
        GradientDescentOptimizer(Node* node, double alpha = 0.1);
        void compute(Context* );
};

#endif
